/*
 * Created on 08/24/2011 - 2:50 PM
 */
package sembr.geometry.shapes;

import importadorDXF.DxfCIRCLE;
import sembr.geometry.interfacing.ShapeBase;
/**
 *
 * @author adriano
 */
public class CircleCollector extends ShapeBase<DxfCIRCLE>
{
    public CircleCollector()
    { }    
    
    /**
     * Get the center of current circle
     * @param index: position of current circle
     * @return the point corresponding the center of the circle
     */
    public double[] getCenter(int index)
    {
        double[] currentPoint = new double[3];
        currentPoint[0] = getCurrentElement(index).getCenter().x;
        currentPoint[1] = getCurrentElement(index).getCenter().y;
        currentPoint[2] = getCurrentElement(index).getCenter().z;
        
        return currentPoint;
    }
    
    public float getRadius(int index)
    {
        return getCurrentElement(index).getRadius();
    }
}
